package com.metadata_system.common.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.crypto.password.Pbkdf2PasswordEncoder;
import org.springframework.web.client.RestTemplate;

@Configuration
public class CommonConfiguration {

    // 密钥加密通用salt
    @Value("${metadata-system.password-secret:gzcpznehp6b4y8sjxj3652o}")
    private String passwordSecret;

    @Bean
    public PasswordEncoder passwordEncoder() {
        return new Pbkdf2PasswordEncoder(this.passwordSecret);
    }






}

